package edu.pw.treegrid.server.web;

import org.w3c.dom.Document;
import org.w3c.dom.Element;

import edu.pw.treegrid.server.classmodel.SimpleAttribute;
import edu.pw.treegrid.server.query.Node;
import edu.pw.treegrid.server.reportmodel.ReportColumn;
import edu.pw.treegrid.server.reportmodel.ReportSimpleColumn;
import edu.pw.treegrid.shared.ReportColumnCategory;
import edu.pw.treegrid.shared.ReportColumnType;

public class ReportSpecialColumn extends ReportSimpleColumn {

	public ReportSpecialColumn(String name) {
		super(name);
		this.setTitle(name);
	}

	@Override
	public Node buildQueryNode() {
		return null;
	}

	@Override
	public SimpleAttribute getSimpleAttribute() {
		return null;
	}

	@Override
	protected void serializeToXML(Document document, Element columnElement) {
		//do nothing
	}

	@Override
	protected boolean isSerialize() {
		return false;
	}

	@Override
	public ReportColumnCategory getCategory() {
		return ReportColumnCategory.SPECIAL;
	}

	@Override
	public ReportColumnType getType() {
		return ReportColumnType.TEXT;
	}
	
}
